package com.asd.map.mapper;

import com.asd.map.entity.Tagging_style;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @author
 * @createtime 2021-11-03 11:08
 * @description
 */
@Mapper
@Component
public interface Tagging_styleMapper extends BaseMapper<Tagging_style> {

    @Select("select * from tagging_style where tid = #{tid}")
    Tagging_style findBYTid(@Param("tid") String tid);

    @Select("select * from tagging_style where field = #{field}")
    Tagging_style findBgetByFieldYTid(@Param("field") String field);

    @Delete("delete from tagging_style where tid = #{tid}")
    void deleteByTid(@Param("tid")String tid);
}
